package com.mpyy.pojo;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

import lombok.*;
/**
* purchase_stock 实体类
* Wed Feb 23 09:47:17 CST 2022 tangneng
*/ 
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class PurchaseStock{

	private String purStoId;

	private String supId;

	private String depotId;

	private Date purStoDate;

	private String empId;

	private Double purStoPayable;

	private Double purStoOutof;

	private String purStoOriginalNum;

	private String purStoCommment;

	private Date purStoPreDate;

	//引用供应商表
	private SupplierInfo supplierInfo;
	//引用员工表
	private EmployeeInfo employeeInfo;
	//引用仓库表
	private DepotInfo depotInfo;

	//搜索，开始日期
	private Date currentTimeStart;
	//搜索，结束日期
	private Date currentTimeEnd;
	// 供货商名称
	private String supName;

	private String purRetId;
	//联合
	private String orcustNameAndId;

	SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
	//根据时间查询：开始时间
	public void setCurrentTimeStart(String currentTimeStart){
		try {
			this.currentTimeStart = simpleDateFormat.parse(currentTimeStart);
		} catch (ParseException e) {
			e.printStackTrace();
		}
	}
	//根据时间查询：结束时间
	public void setCurrentTimeEnd(String currentTimeEnd){
		try {
			this.currentTimeEnd = simpleDateFormat.parse(currentTimeEnd);
		} catch (ParseException e) {
			e.printStackTrace();
		}
	}

	private String null1;

	private String null2;


	//商品编号
	private String proId;
	//商品名称
	private String proName;
	//单位
	private String purStoDescComment;
	//单价
	private String purStoDescPrice;
	//数量
	private String purStoDescNum;
	//总价
	private String amount;
	//联系人
	private String supPeople;
	//联系电话
	private String supPhone;

	//相差金额
	private String differ;
	// //单据号
	// private  String  purStoId;
	//仓库名称
	private  String depotName;
	// //应付金额
	// private  String purStoPayable;
	// //实付金额
	// private  String purStoOutof;
	//经办人
	private  String empName;

	//开始日期
	private String startDate;
	//结束日期
	private String endDate;

	/* Lxy */
	// 商品采购进货详情表
	private List<PurchaseStockDesc> purchaseStockDesc;
}

